"""
flask view
"""
from do_mysql.ext import db
from flask import render_template, Blueprint

user_bp = Blueprint('users', __name__)


@user_bp.route('/show')
def show():
    """

    :return:
    """
    sql = 'select * from user'
    result = db.session.execute(sql)
    return render_template('user/show.html', users=result)


@user_bp.route('/welcome')
def welcome():
    """

    :return:
    """
    return '欢迎光临'
